import React, { Component } from 'react';
import { Route, Link } from 'react-router-dom'
import GetUp from './skill/GetUp'
import Money from './skill/Money'
class Skill extends Component {
  constructor(props) {
    super(props);
    this.state = {  }
    this.props.history.push('/skill/getup')
  }
  render() { 
    return (<div className="right">
      <h3>职场技能</h3>
      <ul className="subNav">
        <li><Link to='/skill/getup'>早起攻略</Link></li>
        <li><Link to='/skill/money'>加薪秘籍</Link></li>
      </ul>
      <div className= "subContent">
        <Route path='/skill/getup' component={GetUp} />
        <Route path='/skill/money' component={Money} />
      </div>
    </div>);
  }
}
 
export default Skill;